<html>
<head>
    <meta charset="utf-8">

    <link href="__CSS__bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="__CSS__index.css" type="text/css" rel="stylesheet">
    <script src="__JS__jquery-3.1.1.min.js"></script>
    <script src="__JS__bootstrap.min.js"></script>
</head>
<body>
<!--导航栏start-->
<!--<include file="Public:header" />-->
{:W('Menu/header')}
<!--导航栏end-->

<!--菜单栏start-->
<!--<include file="Public:left" />-->
{:W('Menu/left')}
<!--菜单栏end-->

<ol class="breadcrumb col-sm-9 col-md-10">
    <li><a href="mdindex">组件管理</a></li>
    <li class="active">留言管理</li>
</ol>

<div class="panel panel-default col-sm-9 col-md-10">
    <div class="panel-body">
        <h3 class="panel panel-header">留言修改</h3>
        <form action="{:U('mdupd')}" method="POST" class="form-group col-sm-12">
            <div class="form-group col-sm-12 col-md-12">
                <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-10 col-md-10">
                    <input type="text"  value="{$list['username']}" class="form-control" id="inputEmail3" placeholder="用户名">
                </div>
            </div>
            <div class="form-group col-sm-12 col-md-12" >
                <label class="col-sm-2 col-md-2 control-label">留言内容</label>
                <div class="col-sm-10 col-md-10">
                    <textarea type="text" name="content" class="form-control">{$list['content']}
                    </textarea>
                </div>
            </div>
            <input type="hidden" name="id" value="{$list['id']}"/>
            <input type="hidden" id="time" name="time"/>
            <input type="hidden" name="type" value="2">
            <p class="col-sm-12 col-md-12" style="margin:1em auto;">
                <input type="submit" id="sub" class="btn btn-default">
            </p>

        </form>
    </div>
</div>


</body>
    <script>
        $('#sub').on('click',function(){
            $('#time').val(getNowFormatDate());
        });
    </script>
</html>